package entity;

import java.io.Serializable;

public class Usershoppingcat implements Serializable {
    public User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Useraddress getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(Useraddress useraddress) {
        this.useraddress = useraddress;
    }

    public Shoplist getShoplist() {
        return shoplist;
    }

    public void setShoplist(Shoplist shoplist) {
        this.shoplist = shoplist;
    }

    public Useraddress useraddress;
    public Shoplist shoplist;
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.id
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.userid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer userid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.addressid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer addressid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.shoppinglistid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer shoppinglistid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.buy
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer buy;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column usershoppingcat.pid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private Integer pid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table usershoppingcat
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.id
     *
     * @return the value of usershoppingcat.id
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.id
     *
     * @param id the value for usershoppingcat.id
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.userid
     *
     * @return the value of usershoppingcat.userid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.userid
     *
     * @param userid the value for usershoppingcat.userid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.addressid
     *
     * @return the value of usershoppingcat.addressid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getAddressid() {
        return addressid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.addressid
     *
     * @param addressid the value for usershoppingcat.addressid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setAddressid(Integer addressid) {
        this.addressid = addressid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.shoppinglistid
     *
     * @return the value of usershoppingcat.shoppinglistid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getShoppinglistid() {
        return shoppinglistid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.shoppinglistid
     *
     * @param shoppinglistid the value for usershoppingcat.shoppinglistid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setShoppinglistid(Integer shoppinglistid) {
        this.shoppinglistid = shoppinglistid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.buy
     *
     * @return the value of usershoppingcat.buy
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getBuy() {
        return buy;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.buy
     *
     * @param buy the value for usershoppingcat.buy
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setBuy(Integer buy) {
        this.buy = buy;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column usershoppingcat.pid
     *
     * @return the value of usershoppingcat.pid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column usershoppingcat.pid
     *
     * @param pid the value for usershoppingcat.pid
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table usershoppingcat
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", addressid=").append(addressid);
        sb.append(", shoppinglistid=").append(shoppinglistid);
        sb.append(", buy=").append(buy);
        sb.append(", pid=").append(pid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table usershoppingcat
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Usershoppingcat other = (Usershoppingcat) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getAddressid() == null ? other.getAddressid() == null : this.getAddressid().equals(other.getAddressid()))
            && (this.getShoppinglistid() == null ? other.getShoppinglistid() == null : this.getShoppinglistid().equals(other.getShoppinglistid()))
            && (this.getBuy() == null ? other.getBuy() == null : this.getBuy().equals(other.getBuy()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table usershoppingcat
     *
     * @mbg.generated Wed May 10 10:52:10 UTC 2023
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getAddressid() == null) ? 0 : getAddressid().hashCode());
        result = prime * result + ((getShoppinglistid() == null) ? 0 : getShoppinglistid().hashCode());
        result = prime * result + ((getBuy() == null) ? 0 : getBuy().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        return result;
    }
}